package day31;

public class threads extends Thread {

	public void run(){
		this.doSomething();
	}
		public void doSomething(){
			System.out.println("hello");
		}

	
	public static void main(String[] args) {
		System.out.println("Before creating threads");
		threads t =new threads();
		t.start();
		System.out.println("After creating threads");
	}

}
